toolbar: don't forget to set orientable style classes
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 10 Oct 2012 15:36:28 +0000 (11:36 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 10 Oct 2012 15:37:16 +0000 (11:37 -0400)
So that themes can select for vertical toolbars.

gtk/gtktoolbar.c

index e184c067f2ff8016410bf76bd30501194be9578a..56350e5650aa32898a038ae27019cb8a6b4c9def 100644 (file)
@@ -44,6 +44,7 @@
 #include "gtkmarshalers.h"
 #include "gtkmenu.h"
 #include "gtkorientable.h"
+#include "gtkorientableprivate.h"
 #include "gtkradiobutton.h"
 #include "gtkradiotoolbutton.h"
 #include "gtkseparatormenuitem.h"
@@ -2578,6 +2579,7 @@ gtk_toolbar_orientation_changed (GtkToolbar    *toolbar,
       
       gtk_toolbar_reconfigured (toolbar);
       
+      _gtk_orientable_set_style_classes (GTK_ORIENTABLE (toolbar));
       gtk_widget_queue_resize (GTK_WIDGET (toolbar));
       g_object_notify (G_OBJECT (toolbar), "orientation");
     }